In my VB5 Programmer's Guide to Win32 API, the function EnumSystemLocales is listed, but my application keeps crashing whenever I try to implement it. I'm using the following code
Public Declare Function EnumSystemLocales Lib "kernel32" Alias _
"EnumSystemLocalesA" (ByVal lpLocaleEnumProc As Long, ByVal _
dwFlags As Long) As Long
Public Const LCID_INSTALLED = &H1 ' installed Locale ids
Public Function EnumLocalesProc(ByVal Locale As String) As Boolean
Debug.Print Locale
EnumLocalesProc = True
End Function